<%@ page language="java" contentType="text/html; charset=utf-8"
	pageEncoding="utf-8" %>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>

<meta charset=utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>ZZTY</title>
<!-- BOOTSTRAP STYLES-->
<link href="../css/bootstrap.css" rel="stylesheet" />

<!-- CUSTOM STYLES-->
<link href="../css/custom.css" rel="stylesheet" />
<script src="http://ajax.aspnetcdn.com/ajax/jQuery/jquery-1.8.0.js"></script>
<script type="text/javascript">

	
	function check() {
		var newpwd1 = $("#new1").val();
		var newpwd2 = $("#new2").val();
		if (newpwd1 != newpwd2) {
			alert("两次密码不一致");
			return false;
		} else if (newpwd1.length <1 ||newpwd2.length<1) {
			alert("密码不能为空");
			return false;
		}
		retrun true;
	}

</script>
</head>
<body>
	
	<div id="wrapper">
		<nav class="navbar navbar-default navbar-cls-top " role="navigation"
			style="margin-bottom: 0">
			<div class="navbar-header">
				<a class="navbar-brand">自在天原</a>
			</div>
			<div
				style="color: white;
padding: 15px 50px 5px 50px;
float: right;
font-size: 16px;">
				<form action="../loginOut.jsp" method="post">
					<button type="submit" class="btn btn-danger">注销</button>
				</form>
			</div>
		</nav>
		<!-- /. NAV TOP  -->
		<nav class="navbar-default navbar-side" role="navigation">
			<div class="sidebar-collapse">
				<ul class="nav" id="main-menu">
					<li class="text-center">
						</li>
					<li><a href="../StudentPageSkip/index"><i
							class="fa fa-dashboard fa-3x"></i> 主页</a></li>
					<li><a href="../StudentPageSkip/UserInfo"><i class="fa fa-table fa-3x"></i>
							个人信息</a></li>
					<li><a href="../StudentPageSkip/SelfExam"><i class="fa fa-desktop fa-3x"></i>
							今日竞赛</a></li>
					<li><a href="../StudentPageSkip/TeamExam"><i class="fa fa-qrcode fa-3x"></i>
							今日结对</a></li>
					<li><a href="../StudentPageSkip/History"><i
							class="fa fa-bar-chart-o fa-3x"></i> 历史记录</a></li>

					<li><a href="../StudentPageSkip/ChangePassword"><i
							class="fa fa-edit fa-3x"></i> 密码修改 </a></li>

				</ul>

			</div>

		</nav>
		<!-- /. NAV SIDE  -->
		<div id="page-wrapper">
			<div id="page-inner">
				<div class="row">
					<div class="col-md-12">


						<div class="table-responsive">
							<form action="../User/changePWD" method="post" onsubmit="return check() ">
									<table class="table">
									<caption>
										<h2>更改密码</h2>
									</caption>
									<thead>
										<tr>
											<th>原密码</th>
											<td><input type="password" class="form-control"
												name="oldPwd" id = "old"placeholder="请输入原密码"></td>
										</tr>
									</thead>
									<tbody>
										<tr>
											<th>新密码</th>
											<td><input type="password" class="form-control"
												name="newPwd" id="new1" placeholder="请输入新密码"></td>
										</tr>
										<tr>
											<th>确认新密码</th>
											<td><input type="password" class="form-control"
												name="nwePwd1" id="new2" placeholder="请输入再次输入">
										<tr>
											<th><button type="submit" a href="index.jsp"
													class="btn btn-success ">
													确认</a>
												</button></th>
										</tr>
									</tbody>
								</table>
							</form>
						</div>



					</div>
				</div>
				<!-- /. ROW  -->
				<hr />

			</div>
			<!-- /. PAGE INNER  -->
		</div>
		<!-- /. PAGE WRAPPER  -->
	</div>
	<!-- /. WRAPPER  -->
	<!-- SCRIPTS -AT THE BOTOM TO REDUCE THE LOAD TIME-->
	<!-- JQUERY SCRIPTS -->
	<!-- BOOTSTRAP SCRIPTS -->
	<script src="../js/bootstrap.min.js"></script>
	<!-- METISMENU SCRIPTS -->
	<script src="../js/jquery.metisMenu.js"></script>



</body>
</html>
